package com.seraph.zys.dao.impl;

import com.seraph.bi.suite.support.domain.pagination.PageBox;
import com.seraph.bi.suite.support.domain.pagination.PageObject;
import com.seraph.zys.dao.PccPaPatientsExamFeeDAO;
import com.seraph.zys.dao.domain.PccPaPatientsExamFee;
import com.seraph.zys.dao.domain.PccPaPatientsExamFeeExample;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.stereotype.Repository;

@Repository
public class PccPaPatientsExamFeeDAOImpl extends SqlMapClientDaoSupport implements PccPaPatientsExamFeeDAO {

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public PccPaPatientsExamFeeDAOImpl() {
        super();
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public Integer insert(PccPaPatientsExamFee record) {
        Object newKey = getSqlMapClientTemplate().insert("pcc_pa_patients_exam_fee.abatorgenerated_insert", record);
        return (Integer) newKey;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public int updateByPrimaryKey(PccPaPatientsExamFee record) {
        int rows = getSqlMapClientTemplate().update("pcc_pa_patients_exam_fee.abatorgenerated_updateByPrimaryKey", record);
        return rows;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public int updateByPrimaryKeySelective(PccPaPatientsExamFee record) {
        int rows = getSqlMapClientTemplate().update("pcc_pa_patients_exam_fee.abatorgenerated_updateByPrimaryKeySelective", record);
        return rows;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public List selectByExample(PccPaPatientsExamFeeExample example, String orderByClause) {
        Map parms = getExampleParms(example);
        if (orderByClause != null) {
            parms.put("ABATOR_ORDER_BY_CLAUSE", orderByClause);
        }
        List list = getSqlMapClientTemplate().queryForList("pcc_pa_patients_exam_fee.abatorgenerated_selectByExample", parms);
        return list;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public List selectByExample(PccPaPatientsExamFeeExample example) {
        return selectByExample(example, null);
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public PccPaPatientsExamFee selectByPrimaryKey(Integer id) {
        PccPaPatientsExamFee key = new PccPaPatientsExamFee();
        key.setId(id);
        PccPaPatientsExamFee record = (PccPaPatientsExamFee) getSqlMapClientTemplate().queryForObject("pcc_pa_patients_exam_fee.abatorgenerated_selectByPrimaryKey", key);
        return record;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public int deleteByExample(PccPaPatientsExamFeeExample example) {
        int rows = getSqlMapClientTemplate().delete("pcc_pa_patients_exam_fee.abatorgenerated_deleteByExample", getExampleParms(example));
        return rows;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public int deleteByPrimaryKey(Integer id) {
        PccPaPatientsExamFee key = new PccPaPatientsExamFee();
        key.setId(id);
        int rows = getSqlMapClientTemplate().delete("pcc_pa_patients_exam_fee.abatorgenerated_deleteByPrimaryKey", key);
        return rows;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getIDExampleParms(PccPaPatientsExamFeeExample example) {
        Map parms = new HashMap();
        switch (example.getId_Indicator()) {
        case PccPaPatientsExamFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_NULL", "Y");
            } else {
                parms.put("AND_ID_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_NOT_NULL", "Y");
            } else {
                parms.put("AND_ID_NOT_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_EQUALS", "Y");
            } else {
                parms.put("AND_ID_EQUALS", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_ID_NOT_EQUALS", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_GT", "Y");
            } else {
                parms.put("AND_ID_GT", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_GE", "Y");
            } else {
                parms.put("AND_ID_GE", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_LT", "Y");
            } else {
                parms.put("AND_ID_LT", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_LE", "Y");
            } else {
                parms.put("AND_ID_LE", "Y");
            }
            parms.put("id", example.getId());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getFISCAL_YEARExampleParms(PccPaPatientsExamFeeExample example) {
        Map parms = new HashMap();
        switch (example.getFiscalYear_Indicator()) {
        case PccPaPatientsExamFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_NULL", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_NOT_NULL", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_NOT_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_EQUALS", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_EQUALS", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_NOT_EQUALS", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_GT", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_GT", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_GE", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_GE", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_LT", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_LT", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_LE", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_LE", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getFROM_AREAExampleParms(PccPaPatientsExamFeeExample example) {
        Map parms = new HashMap();
        switch (example.getFromArea_Indicator()) {
        case PccPaPatientsExamFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_NULL", "Y");
            } else {
                parms.put("AND_FROM_AREA_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_NOT_NULL", "Y");
            } else {
                parms.put("AND_FROM_AREA_NOT_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_EQUALS", "Y");
            } else {
                parms.put("AND_FROM_AREA_EQUALS", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_FROM_AREA_NOT_EQUALS", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_GT", "Y");
            } else {
                parms.put("AND_FROM_AREA_GT", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_GE", "Y");
            } else {
                parms.put("AND_FROM_AREA_GE", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_LT", "Y");
            } else {
                parms.put("AND_FROM_AREA_LT", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_LE", "Y");
            } else {
                parms.put("AND_FROM_AREA_LE", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LIKE:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_LIKE", "Y");
            } else {
                parms.put("AND_FROM_AREA_LIKE", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getSORT_IDExampleParms(PccPaPatientsExamFeeExample example) {
        Map parms = new HashMap();
        switch (example.getSortId_Indicator()) {
        case PccPaPatientsExamFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_NULL", "Y");
            } else {
                parms.put("AND_SORT_ID_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_NOT_NULL", "Y");
            } else {
                parms.put("AND_SORT_ID_NOT_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_EQUALS", "Y");
            } else {
                parms.put("AND_SORT_ID_EQUALS", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_SORT_ID_NOT_EQUALS", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_GT", "Y");
            } else {
                parms.put("AND_SORT_ID_GT", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_GE", "Y");
            } else {
                parms.put("AND_SORT_ID_GE", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_LT", "Y");
            } else {
                parms.put("AND_SORT_ID_LT", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_LE", "Y");
            } else {
                parms.put("AND_SORT_ID_LE", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getPATIENTS_typeExampleParms(PccPaPatientsExamFeeExample example) {
        Map parms = new HashMap();
        switch (example.getPatientsType_Indicator()) {
        case PccPaPatientsExamFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENTS_type_NULL", "Y");
            } else {
                parms.put("AND_PATIENTS_type_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENTS_type_NOT_NULL", "Y");
            } else {
                parms.put("AND_PATIENTS_type_NOT_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENTS_type_EQUALS", "Y");
            } else {
                parms.put("AND_PATIENTS_type_EQUALS", "Y");
            }
            parms.put("patientsType", example.getPatientsType());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENTS_type_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_PATIENTS_type_NOT_EQUALS", "Y");
            }
            parms.put("patientsType", example.getPatientsType());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENTS_type_GT", "Y");
            } else {
                parms.put("AND_PATIENTS_type_GT", "Y");
            }
            parms.put("patientsType", example.getPatientsType());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENTS_type_GE", "Y");
            } else {
                parms.put("AND_PATIENTS_type_GE", "Y");
            }
            parms.put("patientsType", example.getPatientsType());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENTS_type_LT", "Y");
            } else {
                parms.put("AND_PATIENTS_type_LT", "Y");
            }
            parms.put("patientsType", example.getPatientsType());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENTS_type_LE", "Y");
            } else {
                parms.put("AND_PATIENTS_type_LE", "Y");
            }
            parms.put("patientsType", example.getPatientsType());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LIKE:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENTS_type_LIKE", "Y");
            } else {
                parms.put("AND_PATIENTS_type_LIKE", "Y");
            }
            parms.put("patientsType", example.getPatientsType());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getPATIENTS_numExampleParms(PccPaPatientsExamFeeExample example) {
        Map parms = new HashMap();
        switch (example.getPatientsNum_Indicator()) {
        case PccPaPatientsExamFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENTS_num_NULL", "Y");
            } else {
                parms.put("AND_PATIENTS_num_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENTS_num_NOT_NULL", "Y");
            } else {
                parms.put("AND_PATIENTS_num_NOT_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENTS_num_EQUALS", "Y");
            } else {
                parms.put("AND_PATIENTS_num_EQUALS", "Y");
            }
            parms.put("patientsNum", example.getPatientsNum());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENTS_num_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_PATIENTS_num_NOT_EQUALS", "Y");
            }
            parms.put("patientsNum", example.getPatientsNum());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENTS_num_GT", "Y");
            } else {
                parms.put("AND_PATIENTS_num_GT", "Y");
            }
            parms.put("patientsNum", example.getPatientsNum());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENTS_num_GE", "Y");
            } else {
                parms.put("AND_PATIENTS_num_GE", "Y");
            }
            parms.put("patientsNum", example.getPatientsNum());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENTS_num_LT", "Y");
            } else {
                parms.put("AND_PATIENTS_num_LT", "Y");
            }
            parms.put("patientsNum", example.getPatientsNum());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENTS_num_LE", "Y");
            } else {
                parms.put("AND_PATIENTS_num_LE", "Y");
            }
            parms.put("patientsNum", example.getPatientsNum());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getSUS_EXAM_MULTExampleParms(PccPaPatientsExamFeeExample example) {
        Map parms = new HashMap();
        switch (example.getSusExamMult_Indicator()) {
        case PccPaPatientsExamFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SUS_EXAM_MULT_NULL", "Y");
            } else {
                parms.put("AND_SUS_EXAM_MULT_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SUS_EXAM_MULT_NOT_NULL", "Y");
            } else {
                parms.put("AND_SUS_EXAM_MULT_NOT_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SUS_EXAM_MULT_EQUALS", "Y");
            } else {
                parms.put("AND_SUS_EXAM_MULT_EQUALS", "Y");
            }
            parms.put("susExamMult", example.getSusExamMult());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SUS_EXAM_MULT_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_SUS_EXAM_MULT_NOT_EQUALS", "Y");
            }
            parms.put("susExamMult", example.getSusExamMult());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SUS_EXAM_MULT_GT", "Y");
            } else {
                parms.put("AND_SUS_EXAM_MULT_GT", "Y");
            }
            parms.put("susExamMult", example.getSusExamMult());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SUS_EXAM_MULT_GE", "Y");
            } else {
                parms.put("AND_SUS_EXAM_MULT_GE", "Y");
            }
            parms.put("susExamMult", example.getSusExamMult());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SUS_EXAM_MULT_LT", "Y");
            } else {
                parms.put("AND_SUS_EXAM_MULT_LT", "Y");
            }
            parms.put("susExamMult", example.getSusExamMult());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SUS_EXAM_MULT_LE", "Y");
            } else {
                parms.put("AND_SUS_EXAM_MULT_LE", "Y");
            }
            parms.put("susExamMult", example.getSusExamMult());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getSUS_EXAM_FEEExampleParms(PccPaPatientsExamFeeExample example) {
        Map parms = new HashMap();
        switch (example.getSusExamFee_Indicator()) {
        case PccPaPatientsExamFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SUS_EXAM_FEE_NULL", "Y");
            } else {
                parms.put("AND_SUS_EXAM_FEE_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SUS_EXAM_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_SUS_EXAM_FEE_NOT_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SUS_EXAM_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_SUS_EXAM_FEE_EQUALS", "Y");
            }
            parms.put("susExamFee", example.getSusExamFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SUS_EXAM_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_SUS_EXAM_FEE_NOT_EQUALS", "Y");
            }
            parms.put("susExamFee", example.getSusExamFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SUS_EXAM_FEE_GT", "Y");
            } else {
                parms.put("AND_SUS_EXAM_FEE_GT", "Y");
            }
            parms.put("susExamFee", example.getSusExamFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SUS_EXAM_FEE_GE", "Y");
            } else {
                parms.put("AND_SUS_EXAM_FEE_GE", "Y");
            }
            parms.put("susExamFee", example.getSusExamFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SUS_EXAM_FEE_LT", "Y");
            } else {
                parms.put("AND_SUS_EXAM_FEE_LT", "Y");
            }
            parms.put("susExamFee", example.getSusExamFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SUS_EXAM_FEE_LE", "Y");
            } else {
                parms.put("AND_SUS_EXAM_FEE_LE", "Y");
            }
            parms.put("susExamFee", example.getSusExamFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getRAND_XBYX_scaleExampleParms(PccPaPatientsExamFeeExample example) {
        Map parms = new HashMap();
        switch (example.getRandXbyxScale_Indicator()) {
        case PccPaPatientsExamFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_XBYX_scale_NULL", "Y");
            } else {
                parms.put("AND_RAND_XBYX_scale_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_XBYX_scale_NOT_NULL", "Y");
            } else {
                parms.put("AND_RAND_XBYX_scale_NOT_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_XBYX_scale_EQUALS", "Y");
            } else {
                parms.put("AND_RAND_XBYX_scale_EQUALS", "Y");
            }
            parms.put("randXbyxScale", example.getRandXbyxScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_XBYX_scale_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_RAND_XBYX_scale_NOT_EQUALS", "Y");
            }
            parms.put("randXbyxScale", example.getRandXbyxScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_XBYX_scale_GT", "Y");
            } else {
                parms.put("AND_RAND_XBYX_scale_GT", "Y");
            }
            parms.put("randXbyxScale", example.getRandXbyxScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_XBYX_scale_GE", "Y");
            } else {
                parms.put("AND_RAND_XBYX_scale_GE", "Y");
            }
            parms.put("randXbyxScale", example.getRandXbyxScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_XBYX_scale_LT", "Y");
            } else {
                parms.put("AND_RAND_XBYX_scale_LT", "Y");
            }
            parms.put("randXbyxScale", example.getRandXbyxScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_XBYX_scale_LE", "Y");
            } else {
                parms.put("AND_RAND_XBYX_scale_LE", "Y");
            }
            parms.put("randXbyxScale", example.getRandXbyxScale());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getRAND_XBYX_FEEExampleParms(PccPaPatientsExamFeeExample example) {
        Map parms = new HashMap();
        switch (example.getRandXbyxFee_Indicator()) {
        case PccPaPatientsExamFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_XBYX_FEE_NULL", "Y");
            } else {
                parms.put("AND_RAND_XBYX_FEE_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_XBYX_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_RAND_XBYX_FEE_NOT_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_XBYX_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_RAND_XBYX_FEE_EQUALS", "Y");
            }
            parms.put("randXbyxFee", example.getRandXbyxFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_XBYX_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_RAND_XBYX_FEE_NOT_EQUALS", "Y");
            }
            parms.put("randXbyxFee", example.getRandXbyxFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_XBYX_FEE_GT", "Y");
            } else {
                parms.put("AND_RAND_XBYX_FEE_GT", "Y");
            }
            parms.put("randXbyxFee", example.getRandXbyxFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_XBYX_FEE_GE", "Y");
            } else {
                parms.put("AND_RAND_XBYX_FEE_GE", "Y");
            }
            parms.put("randXbyxFee", example.getRandXbyxFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_XBYX_FEE_LT", "Y");
            } else {
                parms.put("AND_RAND_XBYX_FEE_LT", "Y");
            }
            parms.put("randXbyxFee", example.getRandXbyxFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_XBYX_FEE_LE", "Y");
            } else {
                parms.put("AND_RAND_XBYX_FEE_LE", "Y");
            }
            parms.put("randXbyxFee", example.getRandXbyxFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getRAND_TBB_scaleExampleParms(PccPaPatientsExamFeeExample example) {
        Map parms = new HashMap();
        switch (example.getRandTbbScale_Indicator()) {
        case PccPaPatientsExamFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_TBB_scale_NULL", "Y");
            } else {
                parms.put("AND_RAND_TBB_scale_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_TBB_scale_NOT_NULL", "Y");
            } else {
                parms.put("AND_RAND_TBB_scale_NOT_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_TBB_scale_EQUALS", "Y");
            } else {
                parms.put("AND_RAND_TBB_scale_EQUALS", "Y");
            }
            parms.put("randTbbScale", example.getRandTbbScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_TBB_scale_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_RAND_TBB_scale_NOT_EQUALS", "Y");
            }
            parms.put("randTbbScale", example.getRandTbbScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_TBB_scale_GT", "Y");
            } else {
                parms.put("AND_RAND_TBB_scale_GT", "Y");
            }
            parms.put("randTbbScale", example.getRandTbbScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_TBB_scale_GE", "Y");
            } else {
                parms.put("AND_RAND_TBB_scale_GE", "Y");
            }
            parms.put("randTbbScale", example.getRandTbbScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_TBB_scale_LT", "Y");
            } else {
                parms.put("AND_RAND_TBB_scale_LT", "Y");
            }
            parms.put("randTbbScale", example.getRandTbbScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_TBB_scale_LE", "Y");
            } else {
                parms.put("AND_RAND_TBB_scale_LE", "Y");
            }
            parms.put("randTbbScale", example.getRandTbbScale());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getRAND_TBB_FEEExampleParms(PccPaPatientsExamFeeExample example) {
        Map parms = new HashMap();
        switch (example.getRandTbbFee_Indicator()) {
        case PccPaPatientsExamFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_TBB_FEE_NULL", "Y");
            } else {
                parms.put("AND_RAND_TBB_FEE_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_TBB_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_RAND_TBB_FEE_NOT_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_TBB_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_RAND_TBB_FEE_EQUALS", "Y");
            }
            parms.put("randTbbFee", example.getRandTbbFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_TBB_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_RAND_TBB_FEE_NOT_EQUALS", "Y");
            }
            parms.put("randTbbFee", example.getRandTbbFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_TBB_FEE_GT", "Y");
            } else {
                parms.put("AND_RAND_TBB_FEE_GT", "Y");
            }
            parms.put("randTbbFee", example.getRandTbbFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_TBB_FEE_GE", "Y");
            } else {
                parms.put("AND_RAND_TBB_FEE_GE", "Y");
            }
            parms.put("randTbbFee", example.getRandTbbFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_TBB_FEE_LT", "Y");
            } else {
                parms.put("AND_RAND_TBB_FEE_LT", "Y");
            }
            parms.put("randTbbFee", example.getRandTbbFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_RAND_TBB_FEE_LE", "Y");
            } else {
                parms.put("AND_RAND_TBB_FEE_LE", "Y");
            }
            parms.put("randTbbFee", example.getRandTbbFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getAID_XNCG_scaleExampleParms(PccPaPatientsExamFeeExample example) {
        Map parms = new HashMap();
        switch (example.getAidXncgScale_Indicator()) {
        case PccPaPatientsExamFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_XNCG_scale_NULL", "Y");
            } else {
                parms.put("AND_AID_XNCG_scale_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_XNCG_scale_NOT_NULL", "Y");
            } else {
                parms.put("AND_AID_XNCG_scale_NOT_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_XNCG_scale_EQUALS", "Y");
            } else {
                parms.put("AND_AID_XNCG_scale_EQUALS", "Y");
            }
            parms.put("aidXncgScale", example.getAidXncgScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_XNCG_scale_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_AID_XNCG_scale_NOT_EQUALS", "Y");
            }
            parms.put("aidXncgScale", example.getAidXncgScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_XNCG_scale_GT", "Y");
            } else {
                parms.put("AND_AID_XNCG_scale_GT", "Y");
            }
            parms.put("aidXncgScale", example.getAidXncgScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_XNCG_scale_GE", "Y");
            } else {
                parms.put("AND_AID_XNCG_scale_GE", "Y");
            }
            parms.put("aidXncgScale", example.getAidXncgScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_XNCG_scale_LT", "Y");
            } else {
                parms.put("AND_AID_XNCG_scale_LT", "Y");
            }
            parms.put("aidXncgScale", example.getAidXncgScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_XNCG_scale_LE", "Y");
            } else {
                parms.put("AND_AID_XNCG_scale_LE", "Y");
            }
            parms.put("aidXncgScale", example.getAidXncgScale());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getAID_XNCG_FEEExampleParms(PccPaPatientsExamFeeExample example) {
        Map parms = new HashMap();
        switch (example.getAidXncgFee_Indicator()) {
        case PccPaPatientsExamFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_XNCG_FEE_NULL", "Y");
            } else {
                parms.put("AND_AID_XNCG_FEE_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_XNCG_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_AID_XNCG_FEE_NOT_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_XNCG_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_AID_XNCG_FEE_EQUALS", "Y");
            }
            parms.put("aidXncgFee", example.getAidXncgFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_XNCG_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_AID_XNCG_FEE_NOT_EQUALS", "Y");
            }
            parms.put("aidXncgFee", example.getAidXncgFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_XNCG_FEE_GT", "Y");
            } else {
                parms.put("AND_AID_XNCG_FEE_GT", "Y");
            }
            parms.put("aidXncgFee", example.getAidXncgFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_XNCG_FEE_GE", "Y");
            } else {
                parms.put("AND_AID_XNCG_FEE_GE", "Y");
            }
            parms.put("aidXncgFee", example.getAidXncgFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_XNCG_FEE_LT", "Y");
            } else {
                parms.put("AND_AID_XNCG_FEE_LT", "Y");
            }
            parms.put("aidXncgFee", example.getAidXncgFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_XNCG_FEE_LE", "Y");
            } else {
                parms.put("AND_AID_XNCG_FEE_LE", "Y");
            }
            parms.put("aidXncgFee", example.getAidXncgFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getAID_GSGN_scaleExampleParms(PccPaPatientsExamFeeExample example) {
        Map parms = new HashMap();
        switch (example.getAidGsgnScale_Indicator()) {
        case PccPaPatientsExamFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_GSGN_scale_NULL", "Y");
            } else {
                parms.put("AND_AID_GSGN_scale_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_GSGN_scale_NOT_NULL", "Y");
            } else {
                parms.put("AND_AID_GSGN_scale_NOT_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_GSGN_scale_EQUALS", "Y");
            } else {
                parms.put("AND_AID_GSGN_scale_EQUALS", "Y");
            }
            parms.put("aidGsgnScale", example.getAidGsgnScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_GSGN_scale_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_AID_GSGN_scale_NOT_EQUALS", "Y");
            }
            parms.put("aidGsgnScale", example.getAidGsgnScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_GSGN_scale_GT", "Y");
            } else {
                parms.put("AND_AID_GSGN_scale_GT", "Y");
            }
            parms.put("aidGsgnScale", example.getAidGsgnScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_GSGN_scale_GE", "Y");
            } else {
                parms.put("AND_AID_GSGN_scale_GE", "Y");
            }
            parms.put("aidGsgnScale", example.getAidGsgnScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_GSGN_scale_LT", "Y");
            } else {
                parms.put("AND_AID_GSGN_scale_LT", "Y");
            }
            parms.put("aidGsgnScale", example.getAidGsgnScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_GSGN_scale_LE", "Y");
            } else {
                parms.put("AND_AID_GSGN_scale_LE", "Y");
            }
            parms.put("aidGsgnScale", example.getAidGsgnScale());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getAID_GSGN_FEEExampleParms(PccPaPatientsExamFeeExample example) {
        Map parms = new HashMap();
        switch (example.getAidGsgnFee_Indicator()) {
        case PccPaPatientsExamFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_GSGN_FEE_NULL", "Y");
            } else {
                parms.put("AND_AID_GSGN_FEE_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_GSGN_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_AID_GSGN_FEE_NOT_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_GSGN_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_AID_GSGN_FEE_EQUALS", "Y");
            }
            parms.put("aidGsgnFee", example.getAidGsgnFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_GSGN_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_AID_GSGN_FEE_NOT_EQUALS", "Y");
            }
            parms.put("aidGsgnFee", example.getAidGsgnFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_GSGN_FEE_GT", "Y");
            } else {
                parms.put("AND_AID_GSGN_FEE_GT", "Y");
            }
            parms.put("aidGsgnFee", example.getAidGsgnFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_GSGN_FEE_GE", "Y");
            } else {
                parms.put("AND_AID_GSGN_FEE_GE", "Y");
            }
            parms.put("aidGsgnFee", example.getAidGsgnFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_GSGN_FEE_LT", "Y");
            } else {
                parms.put("AND_AID_GSGN_FEE_LT", "Y");
            }
            parms.put("aidGsgnFee", example.getAidGsgnFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_GSGN_FEE_LE", "Y");
            } else {
                parms.put("AND_AID_GSGN_FEE_LE", "Y");
            }
            parms.put("aidGsgnFee", example.getAidGsgnFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getAID_OTHER_scaleExampleParms(PccPaPatientsExamFeeExample example) {
        Map parms = new HashMap();
        switch (example.getAidOtherScale_Indicator()) {
        case PccPaPatientsExamFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_OTHER_scale_NULL", "Y");
            } else {
                parms.put("AND_AID_OTHER_scale_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_OTHER_scale_NOT_NULL", "Y");
            } else {
                parms.put("AND_AID_OTHER_scale_NOT_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_OTHER_scale_EQUALS", "Y");
            } else {
                parms.put("AND_AID_OTHER_scale_EQUALS", "Y");
            }
            parms.put("aidOtherScale", example.getAidOtherScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_OTHER_scale_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_AID_OTHER_scale_NOT_EQUALS", "Y");
            }
            parms.put("aidOtherScale", example.getAidOtherScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_OTHER_scale_GT", "Y");
            } else {
                parms.put("AND_AID_OTHER_scale_GT", "Y");
            }
            parms.put("aidOtherScale", example.getAidOtherScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_OTHER_scale_GE", "Y");
            } else {
                parms.put("AND_AID_OTHER_scale_GE", "Y");
            }
            parms.put("aidOtherScale", example.getAidOtherScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_OTHER_scale_LT", "Y");
            } else {
                parms.put("AND_AID_OTHER_scale_LT", "Y");
            }
            parms.put("aidOtherScale", example.getAidOtherScale());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_OTHER_scale_LE", "Y");
            } else {
                parms.put("AND_AID_OTHER_scale_LE", "Y");
            }
            parms.put("aidOtherScale", example.getAidOtherScale());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getAID_OTHER_FEEExampleParms(PccPaPatientsExamFeeExample example) {
        Map parms = new HashMap();
        switch (example.getAidOtherFee_Indicator()) {
        case PccPaPatientsExamFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_OTHER_FEE_NULL", "Y");
            } else {
                parms.put("AND_AID_OTHER_FEE_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_OTHER_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_AID_OTHER_FEE_NOT_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_OTHER_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_AID_OTHER_FEE_EQUALS", "Y");
            }
            parms.put("aidOtherFee", example.getAidOtherFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_OTHER_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_AID_OTHER_FEE_NOT_EQUALS", "Y");
            }
            parms.put("aidOtherFee", example.getAidOtherFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_OTHER_FEE_GT", "Y");
            } else {
                parms.put("AND_AID_OTHER_FEE_GT", "Y");
            }
            parms.put("aidOtherFee", example.getAidOtherFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_OTHER_FEE_GE", "Y");
            } else {
                parms.put("AND_AID_OTHER_FEE_GE", "Y");
            }
            parms.put("aidOtherFee", example.getAidOtherFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_OTHER_FEE_LT", "Y");
            } else {
                parms.put("AND_AID_OTHER_FEE_LT", "Y");
            }
            parms.put("aidOtherFee", example.getAidOtherFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_AID_OTHER_FEE_LE", "Y");
            } else {
                parms.put("AND_AID_OTHER_FEE_LE", "Y");
            }
            parms.put("aidOtherFee", example.getAidOtherFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map gettotal_FEEExampleParms(PccPaPatientsExamFeeExample example) {
        Map parms = new HashMap();
        switch (example.getTotalFee_Indicator()) {
        case PccPaPatientsExamFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_total_FEE_NULL", "Y");
            } else {
                parms.put("AND_total_FEE_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_total_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_total_FEE_NOT_NULL", "Y");
            }
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_total_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_total_FEE_EQUALS", "Y");
            }
            parms.put("totalFee", example.getTotalFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_total_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_total_FEE_NOT_EQUALS", "Y");
            }
            parms.put("totalFee", example.getTotalFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_total_FEE_GT", "Y");
            } else {
                parms.put("AND_total_FEE_GT", "Y");
            }
            parms.put("totalFee", example.getTotalFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_total_FEE_GE", "Y");
            } else {
                parms.put("AND_total_FEE_GE", "Y");
            }
            parms.put("totalFee", example.getTotalFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_total_FEE_LT", "Y");
            } else {
                parms.put("AND_total_FEE_LT", "Y");
            }
            parms.put("totalFee", example.getTotalFee());
            break;
        case PccPaPatientsExamFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_total_FEE_LE", "Y");
            } else {
                parms.put("AND_total_FEE_LE", "Y");
            }
            parms.put("totalFee", example.getTotalFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    private Map getExampleParms(PccPaPatientsExamFeeExample example) {
        Map parms = new HashMap();
        parms.putAll(getIDExampleParms(example));
        parms.putAll(getFISCAL_YEARExampleParms(example));
        parms.putAll(getFROM_AREAExampleParms(example));
        parms.putAll(getSORT_IDExampleParms(example));
        parms.putAll(getPATIENTS_typeExampleParms(example));
        parms.putAll(getPATIENTS_numExampleParms(example));
        parms.putAll(getSUS_EXAM_MULTExampleParms(example));
        parms.putAll(getSUS_EXAM_FEEExampleParms(example));
        parms.putAll(getRAND_XBYX_scaleExampleParms(example));
        parms.putAll(getRAND_XBYX_FEEExampleParms(example));
        parms.putAll(getRAND_TBB_scaleExampleParms(example));
        parms.putAll(getRAND_TBB_FEEExampleParms(example));
        parms.putAll(getAID_XNCG_scaleExampleParms(example));
        parms.putAll(getAID_XNCG_FEEExampleParms(example));
        parms.putAll(getAID_GSGN_scaleExampleParms(example));
        parms.putAll(getAID_GSGN_FEEExampleParms(example));
        parms.putAll(getAID_OTHER_scaleExampleParms(example));
        parms.putAll(getAID_OTHER_FEEExampleParms(example));
        parms.putAll(gettotal_FEEExampleParms(example));
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public int selectCountByExample(PccPaPatientsExamFeeExample example) {
        Map parms = getExampleParms(example);
        int count = ((Integer)getSqlMapClientTemplate().queryForObject("pcc_pa_patients_exam_fee.abatorgenerated_selectCountByExample", parms)).intValue();
        return count;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public PageBox selectByExampleWithPaging(PccPaPatientsExamFeeExample example, int pageSize, int pageNum, String orderByClause) {
        Map parms = getExampleParms(example);
        if (orderByClause != null) {
            parms.put("ABATOR_ORDER_BY_CLAUSE", orderByClause);
        }
        PageBox pageBox = new PageBox();
        PageObject pageObject = new PageObject();
        pageObject.setPageSize(pageSize);
        pageObject.setPageIndex(pageNum);
        int itemAmount = selectCountByExample(example);
        pageObject.setItemAmount(itemAmount);
        List pageList = null;
        if (pageObject.getBeginIndex() <= pageObject.getItemAmount()) {
            pageList = (getSqlMapClientTemplate().queryForList("pcc_pa_patients_exam_fee.abatorgenerated_selectByExample", parms, pageObject.getBeginIndex() - 1, pageSize));
        }
        pageBox.setPageObject(pageObject);
        pageBox.setPageList(pageList);
        return pageBox;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public PageBox selectByExampleWithPaging(PccPaPatientsExamFeeExample example, int pageSize, int pageNum) {
        return selectByExampleWithPaging(example, pageSize, pageNum, null);
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pcc_pa_patients_exam_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:39 CST 2012
     */
    public int updateByPrimaryKeyForCgs(PccPaPatientsExamFee record) {
        int rows = getSqlMapClientTemplate().update("pcc_pa_patients_exam_fee.abatorgenerated_updateByPrimaryKeyForCgs", record);
        return rows;
    }
}